#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int n;
	cin >> n;
	if (n >= 90)
		cout << "Excellent";
	else if (n >= 80)
		cout << "Good";
	else if (n >= 70)
		cout << "Medium";
	else if (n >= 60)
		cout << "Pass";
	else
		cout << "Fail";
	return 0;
}
